<template>
  <div>
     <img v-show='flag' src="./assets/logo.png" alt="">
    <button @click='flag=!flag'>{{flag?'隐藏':'显示'}}</button>
   </div>
</template>
 
<script>
export default {
  data() {
    return {
      flag:true
      };
  },
  methods: {}
};
</script>

<style scoped>
     
</style>